if [[ $# -ne 2 ]]; then
    echo "Usage $0 keyword outdir"
    exit 1
fi

keyword=${1}
outdir=${2}

for i in a b c d e; do
    echo $i
    wget "http://www.gild.com/coding_test_cases/${keyword}/${keyword}-${i}.in" 
    wget "http://www.gild.com/coding_test_cases/${keyword}/${keyword}-${i}.out"
done

mv *.in *.out ${outdir}
